package org.geektime.task.automybatis;

import org.geektime.task.automybatis.annotation.EnableMyBatis;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ImportResource;


@EnableMyBatis(
        dataSource = "dataSource",
        configLocation = "classpath:config/mybatis-config.xml",
        mapperLocations = {"classpath:mapper/**/*.xml"},
        environment = "development")
@SpringBootApplication
public class AutoMybatisApplication {

    public static void main(String[] args) {
        SpringApplication.run(AutoMybatisApplication.class, args);
    }

}
